<template>
	<view>
		支付成功
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad(e) {
			console.log(e.token)
			
			
			
			
			
			uni.request({
				url: 'https://paypal-yfhdzqibcu.ap-southeast-1.fcapp.run/index/capture?id=' + e.token, //仅为示例，并非真实接口地址。
				success: (res) => {
			
					console.log(res.data);
			
					if (res.data.status ==
						"COMPLETED") {
			
						uni.showToast({
							title: '支付完成',
							duration: 2000
						});
			
			
					}
			
			
				},
			})
			
			
			
			
			
			
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
